package com.sc.nft.dao;

import com.sc.nft.entity.vo.merchantPledgeTask.MerchantPledgeCollectionRewardsVO;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.entity.UserMerchantPledgeTaskDetailsRecords;
import com.sc.nft.mapper.UserMerchantPledgeTaskDetailsRecordsMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户商户质押收益记录详情表(sc_user_merchant_pledge_task_details_records)数据DAO
 *
 * @author Sun
 * @since 2023-08-24 16:16:49
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@Repository
public class UserMerchantPledgeTaskDetailsRecordsDao extends ServiceImpl<UserMerchantPledgeTaskDetailsRecordsMapper, UserMerchantPledgeTaskDetailsRecords> {

    public List<MerchantPledgeCollectionRewardsVO> getListByUserRecordsId(Long userId, Long userPledgeTaskRecordsId) {
        return baseMapper.getListByUserRecordsId(userId,userPledgeTaskRecordsId);
    }


    public List<MerchantPledgeCollectionRewardsVO> incomeRecordDetails(Long userId, Long id) {
        return baseMapper.incomeRecordDetails(userId,id);
    }
}